package com.example.demo;

import org.springframework.web.bind.annotation.RequestMapping;

import java.util.ArrayList;
import java.util.List;

public class BookService {
    @RequestMapping("/getlist")
    public List<Books> getlist(){
        List<Books> books=new ArrayList<>();
        //处理页面呈现
        for (Books book:books){
            if(book.getStatus()=="1"){
                book.setStatus("可借阅");
            }else{
                book.setStatus("不可借阅");
            }
        }
        return books;
    }
}
